package com.ruiysoft.entity.aftersaleconf;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyahui
 * @since 2019-01-08
 */
@TableName("aftersale_conf")
public class AftersaleConf extends Model<AftersaleConf> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商铺id
     */
    @TableField("shop_id")
    private Long shopId;

    /**
     * 模板名
     */
    private String name;

    /**
     * 几天退货
     */
    @TableField("returned_day")
    private Integer returnedDay;

    /**
     * 几天换货
     */
    @TableField("exchange_day")
    private Integer exchangeDay;

    /**
     * 是否默认（0，非默认，1，默认）
     */
    @TableField("is_default")
    private Boolean isDefault;

    public Long getId() {
        return id;
    }

    public AftersaleConf setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getShopId() {
        return shopId;
    }

    public AftersaleConf setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }
    public String getName() {
        return name;
    }

    public AftersaleConf setName(String name) {
        this.name = name;
        return this;
    }
    public Integer getReturnedDay() {
        return returnedDay;
    }

    public AftersaleConf setReturnedDay(Integer returnedDay) {
        this.returnedDay = returnedDay;
        return this;
    }
    public Integer getExchangeDay() {
        return exchangeDay;
    }

    public AftersaleConf setExchangeDay(Integer exchangeDay) {
        this.exchangeDay = exchangeDay;
        return this;
    }
    public Boolean getDefault() {
        return isDefault;
    }

    public AftersaleConf setDefault(Boolean isDefault) {
        this.isDefault = isDefault;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AftersaleConf{" +
        "id=" + id +
        ", shopId=" + shopId +
        ", name=" + name +
        ", returnedDay=" + returnedDay +
        ", exchangeDay=" + exchangeDay +
        ", isDefault=" + isDefault +
        "}";
    }
}
